<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache-control" content="no-cache,no-store,must-revalidate,max-age=3" />
	<meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT" />
	<meta name="author" content="dsaiyin.com" />
	<meta name="license" content="LGPL" />
	<title>裕鸟国际货运</title>
    
<base href="/assets/Public/" />
<link rel="icon" href="/assets/Public/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/assets/Public/css/style.css" />
<link rel="stylesheet" type="text/css" href="/assets/Public/css/artdialog.css" />
<script type="text/javascript" src="/assets/Public/js/jquery.artdialog.js" charset="utf-8"></script>
<script type="text/javascript" src="/assets/Public/js/global.js" charset="utf-8"></script>
<!--[if IE]>
<script type="text/javascript" src="/assets/Public/js/html5.js" charset="utf-8"></script>
<![endif]-->

	
</head>
<body>



<div id="header">
    <div class="topNav" style="background:#0a0">
        <div class="box">
	        <span class="fl"><div id="ddate"></div><div id="ddate2"></div>
			<script language="javascript">
                var ddate=document.getElementById("ddate");
                var ddate2=document.getElementById("ddate2");

                function updatedate(){
                    var dd1=new Date();
                    dd1.setMinutes(dd1.getMinutes()+dd1.getTimezoneOffset()-420); //取当地时间加上和格林威治的时差减要求地区和格林的时差分钟，这里是-300，代表美国东部纽约和格林的时差
                    //先设置setMinutes再取getHours才有效
                    var month = dd1.getMonth()+1;
                    //month =(month<10 ? "0"+month:month);
                    if(month < 10)
                    {
                        month = '0'+month.toString();
                    }
                    var date = dd1.getDate();
                    if(date < 10)
                    {
                        date = '0'+date.toString();
                    }
                    var hour = dd1.getHours();
                    if(hour < 10)
                    {
                        hour = '0'+hour.toString();
                    }
                    var minutes = dd1.getMinutes();
                    if(minutes < 10)
                    {
                        minutes = '0'+minutes.toString();
                    }
                    var seconds = dd1.getSeconds();
                    if(seconds < 10)
                    {
                        seconds = '0'+seconds.toString();
                    }
                    ddate.innerHTML='美国西部时间：'+dd1.getFullYear()+"年"+month+"月"+date+"日 "+hour+":"+minutes+":"+seconds;
                    var dd2=new Date();
                    dd2.setMinutes(dd2.getMinutes()+dd2.getTimezoneOffset()+13*60-300);//纽约和中国相差13个小时，夏天是12个小时所以这里加上13*60 夏天改为12*60
                    var month = dd2.getMonth()+1;
                    //month =(month<10 ? "0"+month:month);
                    if(month < 10)
                    {
                        month = '0'+month.toString();
                    }
                    var date = dd2.getDate();
                    if(date < 10)
                    {
                        date = '0'+date.toString();
                    }
                    var hour = dd2.getHours();
                    if(hour < 10)
                    {
                        hour = '0'+hour.toString();
                    }
                    var minutes = dd2.getMinutes();
                    if(minutes < 10)
                    {
                        minutes = '0'+minutes.toString();
                    }
                    var seconds = dd2.getSeconds();
                    if(seconds < 10)
                    {
                        seconds = '0'+seconds.toString();
                    }
                    ddate2.innerHTML='中国北京时间：'+ dd2.getFullYear()+"年"+month+"月"+date+"日 "+hour+":"+minutes+":"+seconds;
                    var t=setTimeout("updatedate()",1000);
                }
                updatedate();
            </script>
			</span>
            <span class="fr">客服电话：0000000</span>
        </div>
    </div>
    <div class="mainNav">
        <div class="box">
            <div class="logo"><a href="/" title="裕鸟国际货运"><img src="/assets/Public/images/logo.png" alt="裕鸟国际货运" /></a></div>
            <div class="mainMenu">
                <ul>
                    <li><a href="/" target="_self">网站首页</a></li>
                    <li><a href="/company" target="_self">公司简介</a></li>
                    <li><a href="/news" target="_self">网站公告</a></li>
                    <li><a href="/help" target="_self">帮助中心</a></li>
                    <li><a href="/contactus" target="_self">联系我们</a></li>
                </ul>
                <dl class="buttons fr">
                    <?php if($_SESSION['users']==''): ?><dd><a class="am-button-innerNav button-login" style="background:#0a0;" href="/login">登录</a></dd>
                        <dd><a class="am-button-innerNav button-register" style="color:#0a0" href="/register" target="_blank">注册</a></dd>
                        <?php else: ?>
                        <dd><a class="am-button-innerNav button-login" style="background:#0a0;" href="/personage">个人中心</a></dd>
                        <dd><a class="am-button-innerNav button-register" style="color:#0a0" href="javascript:logout('<?php echo ($_SESSION['users']['account']); ?>');void(0)">退出</a></dd><?php endif; ?>
                </dl>
            </div>
        </div>
    </div>
</div>
<div id="banner">
    <link rel="stylesheet" type="text/css" href="/assets/css/slider.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/default.css">
    <script type="text/javascript" src="/assets/js/slider.js"></script>
    <div class="slider-wrapper theme-default">
        <div id="slider" style="margin:0 auto" class="nivoSlider">
            <a href="/" target="_blank" title="裕鸟国际货运为您服务"><img width="1367" height="400" src="/assets/Public/images/lunbo2.jpg" alt="裕鸟国际货运为您服务"></a>
        </div>
    </div>
    <script type="text/javascript">
        function logout(t){
            var q = confirm("您好，【"+t+"】，确定要退出吗？");
            if(q == '0')
            {
                return false;
            }else{
                document.location.href="/login/quit/id/<?php echo ($_SESSION['users']['id']); ?>";
            }

        }

        var width = $(window).width();
        if (width > 1367) {
            width = 1367;
        }
        else if (width < 1000) {
            width = 1000;
        }
        //var percent = width/1590;
        //var height=526*percent;
        var height=400;
        $('#slider img').attr('width', width).attr('height', height);
        $('#slider').css('width', width).css('height', height);
        $(function () {
            $('#slider').nivoSlider();
        });
    </script>
</div>

<div class="box">
<section class="cont">
<div class="cx fl mr60">

    <h2><span style="border-bottom-color: #0a0;">运单查询</span></h2>
    <input type="text" name="sn" id="sn" value="" class="inputText" style="width: 250px;">
    <a id="start_search" class="am-button-innerNav button-login fr" style="background:#0a0;"  href="javascript:;">开始查询</a>
    <br/>
    <a id="/Order" class="am-button-innerNav  button-login1" style="background:#0a0;margin: 20px 0px"  href="/order">网上下单</a>

</div>
<div class="cx fl">
    <h2><span style="border-bottom-color: #0a0;">运费计算器</span></h2>

    <form action="/Tariff/index" method="post">
        <p>
            国家：
            <select id="" class="inputText" name="country_id" style="width: 300px;">
                <?php if(is_array($state)): foreach($state as $key=>$value): ?><option value="<?php echo ($value['id']); ?>"><?php echo ($value['ename']); ?>/<?php echo ($value['cname']); ?></option><?php endforeach; endif; ?>
            </select>
        </p>
        <p>发货渠道：
            <select id="channel_id" class="inputText" name="channel_id" style="width: 100px; margin-right: 30px">
                <option value="">选择渠道</option>
                <?php if(is_array($channel)): foreach($channel as $key=>$val): ?><option value="<?php echo ($val['id']); ?>"><?php echo ($val['company']); ?></option><?php endforeach; endif; ?>
            </select>
        </p>
        <p style="line-height: 40px;margin-bottom: 10px">
            重量：<input id="weight" type="number" name="weight" min="0.1" step="0.01"  value="" class="inputText clearFix" placeholder="重量(kg)" style="width: 60px;margin-right:5px;height: 20px" required="请输数字" oninvalid="setCustomValidity('请输数字');" oninput="setCustomValidity('')">kg</p>
        <input id="count" type="submit" class="button-login1" style="background:#0a0;" value="计算运费">
    </form>
</div>
<div class="cx fr">
<h2><span style="border-bottom-color: #0a0;">帮助中心</span><span  style="border-bottom-color: #0a0;" class="fr f12 mt10 blue fw"><a href="/help" style="color:#0a0;">更多>></a></span></h2>

</div>
</section>
<div class="clearFix"></div>
<section class="link">
    <h2><span style="border-bottom-color: #00aa00">合作伙伴</span></h2>
    <ul class="hezuo">
		<li><a href="http://www.kuaidi100.com/" target="_blank" title="快递100"><img src="/assets/Public/images/auto_1095.gif" width="143" height="55"></a></li>
    	<li><a href="http://www.dhl.com/" target="_blank" title="DHL"><img src="/assets/Public/images/auto_1049.gif" width="143" height="55"></a></li>
    	<li><a href="http://www.fedex.com/" target="_blank" title="FedEx"><img src="/assets/Public/images/auto_1048.gif" width="143" height="55"></a></li>
    	<li><a href="https://www.usps.com/" target="_blank" title="UPS"><img src="/assets/Public/images/auto_1047.jpg" width="143" height="55"></a></li>
    	<li><a href="http://www.ems.com.cn/" target="_blank" title="EMS"><img src="/assets/Public/images/auto_1052.jpg" width="143" height="55"></a></li>
    	
    </ul>
</section>
</div>
<div class="clearFix"></div>


<div id="footer">
    <div class="box">
        <h3 class="h3">跨境电商供应链及国际物流解决方案专家</h3>
        <dl>
            <dt>国际配送</dt>
            <dd>丰富的全球航空路线</dd>
            <dd>稳定的国际配送服务</dd>
            <dd>本地化客户服务团队</dd>
        </dl>
        <dl>
            <dt>海外仓储</dt>
            <dd>遍布全球的服务网点</dd>
            <dd>专业的电商仓储服务</dd>
            <dd>高效的配货包装服务</dd>
        </dl>
        <dl>
            <dt>保税物流</dt>
            <dd>中国各大保税试点区域布局</dd>
            <dd>跨境电商保税进口服务</dd>
        </dl>
        <dl>
            <dt>关务辅导</dt>
            <dd>海外出口申报服务</dd>
            <dd>中国入境申报咨询</dd>
            <dd>口岸政策解读</dd>
        </dl>
        <dl>
            <dt>跨境电商</dt>
            <dd>跨境B2B B2C</dd>
            <dd>电商集团采购</dd>
            <dd>海外专业买手团队</dd>
        </dl>
    </div>
    <div class="clearFix"></div>
    <div class="copy">
        <p>
            <a href="" target="_self">在线留言</a>
            |     	<a href="/contactus" target="_self">联系我们</a>
            <br />    	<p>
        <p>Copyright (c) 2012-2017 All Rights. </p>
    </div>
</div>
<div id="right-float-box" class="im_floatonline"  style="border-color: #0a0;">
    <div class="float-box-content">
        <div  style="background: #0a0;" class="toptitle">快递世界</div>
        <div class="addlist">
            <ul>
                <li>客服QQ<br /><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=824649982&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:24473570:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
                <li><img src="/assets/Public/images/abb267d5cc1e72b5.jpg" width="80px" alt="快递世界" /></li>
            </ul>

        </div>
    </div>
</div>



<script type="text/javascript">
    $("#start_search").click(function(){
        var sn=$("#sn").val();
        if(!sn){
            $.dialog.alert("请填写运单号查询");
            return false;
        }else{
            document.location.href="/Waybill/select/wid/"+sn;
        }
        var arr = sn.split('\n');
        if(arr.length>1){
            $.dialog.alert("一次最多只能查询1个运单号");
            return false;
        }
    });
    $("#count").click(function(){

        var weight = $("#weight").val();
        if(!weight){
            $.dialog.alert("请填写包裹重量");
            return false;
        }
        if(isNaN(weight)){
            $.dialog.alert("包裹重量只能是数字");
            $("#weight").focus();
            return false
        }
        var length = $("#length").val();
        if(!length){
            length=0;
        }
        var width = $("#width").val();
        if(!width){
            width=0;
        }
        var height = $("#height").val();
        if(!height){
            height=0;
        }
        var volume = (length*width*height)/5000*2.2;
        /*var url = get_url('index','count','channel='+channel+'&weight='+weight+'&volume='+volume);
        $.dialog.open(url,{
            'title':'计算运费',
            'width':'50%',
            'height':'50%',
            'lock':true
        });
        return false;*/
    });
</script>

</body>
</html>